/*
 * PayResultAdapter.java
 * business
 *
 * Created by ChenTao on 2017/2/21.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.adapter;

import android.content.Context;

import com.yidiandao.business.ui.widget.listview.CommonAdapter;
import com.yidiandao.business.ui.widget.listview.DisplayItemManager;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.PayFailedListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.PayFailedTipsListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.PayOrderInfoListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.PayResultKeyValueListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.PayResultTitleListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.PaySafetyTipsListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.PaySuccessListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.PayTransferInfoListItem;

/**
 * 订单支付(购买)结果Adapter
 * <p>
 * <p>Created by ChenTao(chentao7v@gmail.com) on 2017/2/21 16:12
 */
public class PayResultAdapter extends CommonAdapter<DisplayListItem> {

    public PayResultAdapter(Context context) {
        super(context);
    }

    @Override
    protected void registerDisplayListItemMap() {
        DisplayItemManager.register(getAdapterTag(), PaySuccessListItem.class);
        DisplayItemManager.register(getAdapterTag(), PayFailedListItem.class);
        DisplayItemManager.register(getAdapterTag(), PayOrderInfoListItem.class);
        DisplayItemManager.register(getAdapterTag(), PaySafetyTipsListItem.class);
        DisplayItemManager.register(getAdapterTag(), PayFailedTipsListItem.class);

        DisplayItemManager.register(getAdapterTag(), PayTransferInfoListItem.class);
        DisplayItemManager.register(getAdapterTag(), PayResultKeyValueListItem.class);
        DisplayItemManager.register(getAdapterTag(), PayResultTitleListItem.class);
    }

    @Override
    protected String getAdapterTag() {
        return PayResultAdapter.class.getSimpleName();
    }
}
